import request from "@/utils/request";

// 店铺管理 - 轮播图管理
export function getBannerList(query) {
  return request({
    url: "/cms-shop/api/brand-banner/list",
    method: "get",
    params:query,
  });
}
// 商品轮播图审核 - 修改状态
export function editBannerStatus(data) {
  return request({
    url: "/cms-shop/api/brand-banner/update-status",
    method: "put",
    data:data,
  });
}
// 商品轮播图审核 - 新增
export function addBanner(data) {
  return request({
    url: "/cms-shop/api/brand-banner",
    method: "post",
    data:data,
  });
}
// 商品轮播图审核 - 编辑
export function editBanner(data) {
  console.log(data)
  return request({
    url: "/cms-shop/api/brand-banner",
    method: "put",
    data:data,
  });
}
// 商品轮播图审核 - 详情
export function getBannerInfo(query) {
  console.log(query)
  return request({
    url:`/cms-shop/api/brand-banner/${query.id}`,
    method: "get",
    params: query,
  });
}
// 商品轮播图审核 - 删除
export function delBanner(data) {
  console.log(data)
  return request({
    url: `cms-shop/api/brand-banner/${data}`,
    method: "DELETE",
  });
}